package com.ygqh.baby.mapper;
import com.ygqh.baby.model.ProductBargainData;
import com.ygqh.baby.po.YgProduct;
import com.ygqh.baby.po.YgUserBargainDetail;
import com.ygqh.baby.po.YgUserBargainDetailExample;
import com.ygqh.baby.ao.QueryInfo;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface YgUserBargainDetailMapper {
    int countByExample(YgUserBargainDetailExample example);

    int deleteByExample(YgUserBargainDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgUserBargainDetail record);

    int insertSelective(YgUserBargainDetail record);

    List<YgUserBargainDetail> selectByExample(YgUserBargainDetailExample example);

    YgUserBargainDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgUserBargainDetail record, @Param("example") YgUserBargainDetailExample example);

    int updateByExample(@Param("record") YgUserBargainDetail record, @Param("example") YgUserBargainDetailExample example);

    int updateByPrimaryKeySelective(YgUserBargainDetail record);

    int updateByPrimaryKey(YgUserBargainDetail record);
    
    int countSuper(@Param ("q") String q);
    
    List<YgUserBargainDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q);

    List<YgProduct> selectProductByBargainId(@Param("bargainId") Long bargainId);


}



